body{
  width: 100vw;
  margin: 0;
  padding: 0 !important;
  overflow-x: hidden;
  overflow-y: hidden;
  background-image: url("bg.png");
  transform-origin: top center;
  /*background-color: yellow;*/

  touch-action: none;

/*  user-select: none;*/
/*  touch-action: manipulation;*/
/*  -webkit-user-select: none;  /* Für iOS/Safari */*/
/*  -ms-user-select: none;      /* Für ältere Edge-Versionen */*/
}


p{
  font-family: "Avenir Next", "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
}


:root {
  --rotationVariable: 0deg;
  --scaleVariable: 1;
}
#mainBtn{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("mainbtn.png");
  background-size: cover;
  background-position: center;
  width:300px;
  height:300px;
  margin-top: 10dvh;
  background-color: rgba(0,0,0,0);
  border: none;
  z-index: 4;
/*  touch-action: manipulation;
  -webkit-user-select: none;
  -ms-user-select: none;*/

  /*filter: drop-shadow(0px 10px 50px rgba(0,0,0,0.5));*/
  transform: rotate(var(--rotationVariable)) scale(var(--scaleVariable));
}
.mainBtnSmallerWhenPushed:active {
    --scaleVariable: 0.98;
}

#mainBtnS{
  /*background-image: url("mainbtn_shadow.png");*/
  background-size: cover;
  background-position: center;
  display: block;
  border: none;
  position: absolute;
  width:300px;
  height:300px;
  transform: scale(1.5);
  opacity: 0.5;
  border: none;
  margin-top: 10dvh;
  pointer-events: none;
  z-index: 3;
}

#playInfo, #recordInfo{
  position: absolute;
  z-index: 5;
  color: black;
  margin-top: 7dvh;
  line-height: 1.1em;
  pointer-events: none;
  font-size: 17px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#recordInfo{
  opacity: 0.3;
}

#allowMicInfo{
  position: absolute;
  top: 33%;
  z-index: 10;
  width: 80%;
  left: calc(10% - 10px);
  margin: 0;
  padding: 10px;
  background-color: rgba(0,0,50, 0.7);
  border-radius: 7px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

#mainDiv {
  display: flex;
  justify-content: center;  /* Horizontal zentrieren */
  align-items: center;      /* Vertikal zentrieren */
  flex-direction: column;
  height: 70dvh;            /* Höhe = 100% Viewport */
/*  background-color: lightblue;*/
  margin: 0;
  margin-top: 3dvh;
  padding: 0;
  position: relative;
  z-index: 5;

  transform-origin: 50% 25%;
  transition: transform 0.5s ease-in-out;
}



#helpBtn{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("info_btn.png");
  background-size: cover;
  background-position: center;
  position: fixed;
  right: 0;
  width:50px;
  height:50px;
  border: none;
  margin: 10px;
  padding: 0;
  background-color: rgba(0,0,0,0);
}
#helpBtn:active {
    transform: scale(0.95);
}

#titel{
  background-image: url("titel.png");
  background-size: cover;
  background-position: center;
  position: fixed;
  width:380px;
  height:190px;
  border: none;
  margin-left: -190px;
  left: 50%;
  padding: 0;
  top: -70px;
  background-color: rgba(0,0,0,0);
}



#playBtn{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("replay_btn.png");
  background-size: cover;
  background-position: center;
  position: absolute;
  width:50px;
  height: 50px;
  border: none;
  margin: 0;
  /*margin-top: -55px;*/
  padding: 0;
  background-color: rgba(0,0,0,0);
}
#playBtn:active {
    transform: scale(0.95);
}




#hintBtn{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("tipp_btn.png");
  background-size: cover;
  background-position: center;
  width:120px;
  min-height:40px;
  border: none;
  margin: 0;
  padding: 0;
  background-color: rgba(0,0,0,0);
}
#hintBtn:active {
    transform: scale(0.95);
}

#demoBtn{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("demo_btn.png");
  background-size: cover;
  background-position: center;
  position: absolute;
  width:120px;
  min-height:40px;
  border: none;
  margin: 0;
  /*margin-top: -55px;*/
  padding: 0;
  background-color: rgba(0,0,0,0);
}
#demoBtn:active {
    transform: scale(0.95);
}


#hintBtnDiv{
  white-space: nowrap;
  margin-top: 10px;

  /*overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  -webkit-overflow-scrolling: touch;*/
}


#hintBtn1{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("tipp1_btn.png");
  background-size: cover;
  background-position: center;
  width:88px;
  height:50px;
  border: none;
  margin: 0;
  padding: 0;
  background-color: rgba(0,0,0,0);
}
#hintBtn1:active {
    transform: scale(0.95);
}
#hintBtn1:disabled {
    background-image: url("tipp1_btn_disabled.4.png");
}

#hintBtn2{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("tipp2_btn.png");
  background-size: cover;
  background-position: center;
  width:88px;
  height:50px;
  border: none;
  margin: 0;
  padding: 0;
  background-color: rgba(0,0,0,0);
}
#hintBtn2:active {
    transform: scale(0.95);
}
#hintBtn2:disabled {
    background-image: url("tipp2_btn_disabled.4.png");
}


#numField{
  background-image: url("tipp_feld.png");
  background-size: cover;
  background-position: center;
  margin: 0;
  padding: 0;
  width:120px;
  min-height:40px;
  text-align: center;
  font-family: "Avenir Next", "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 500;
  border: none;
  background-color: rgba(0,0,0,0);
  vertical-align: middle;
  margin-top: -40px;
}


#hintDiv {
  display: flex;
  justify-content: center;  /* Horizontal zentrieren */
  align-items: center;      /* Vertikal zentrieren */
  flex-direction: column;
  height: 25dvh;            /* Höhe = 100% Viewport */
  /*background-color: yellow;*/
  margin: 0;
  padding: 0;
  margin-bottom: 30px;
}

#darkenBg{
  background-color: rgba(0,0,0, 0.7);
  opacity: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 3;
  pointer-events: none;
}

#cancelBtn{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("cancel_btn.png");
  background-size: cover;
  background-position: center;
  position: fixed;
  left: 50%;
  bottom: 10%;
  width:100px;
  height:100px;
  border: none;
  margin-left: -50px;
  background-color: rgba(0,0,0,0);
  z-index: 20;
  pointer-events: none;
}
#cancelBtn:active {
    transform: scale(0.95);
}

p {
  margin: 0 10px;
  padding: 0;
  text-align: center;
}










#demoDiv{
  position: absolute;
  top: 60%;
  height: 500px;
  width: 100%;
  background-image: url("bg.png");
  /*background-color: red;*/
  background-size: cover;
  transition: top 0.5s ease-in-out;
  overflow-y: hidden;
  padding-top: 20px;
  margin-top: -20px;
}

#demoScroll{
  overflow-y: visible;
  overflow-x: auto;
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  box-sizing: content-box;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  perspective: 1000px;
  padding-top: 30px
}


#demoScroll::-webkit-scrollbar {
  display: none;
}


#demoDiv .spacer{
  /*background-color: yellow;*/
  flex: 0 0 calc(50dvw - 140px);
}

#demoDiv img{
  /*flex: 0 0 auto;*/
  margin: 0 10px;
  scroll-snap-align: center;
  transition: transform 0.8s ease-in-out;
}


#closeBtn{
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-image: url("close_btn.png");
  background-size: cover;
  background-position: center;
  position: fixed;
  right: 0;
  /*left: calc(50vw + 100px);*/
  width:50px;
  height:50px;
  border: none;
  margin: 10px;
  margin-top: -20px;
  padding: 0;
  background-color: rgba(0,0,0,0);
  z-index: 2;
}
#closeBtn:active {
    transform: scale(0.95);
}

#demoDiv #instructionMask{
  position: absolute;
  display: block;
  left: calc(50% - 900px);
  /*left: calc(50vw + 100px);*/
  top: 10px;
  width:1800px;
  height:900px;
  z-index: 1;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

#demoDiv #instruction{
  position: absolute;
  display: block;
  left: calc(50% - 100px);
  /*left: calc(50vw + 100px);*/
  top: -9px;
  width:200px;
  height:125px;
  z-index: 2;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

#preload{
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
}
#preload img{
  width: 10px;
  height: 10px;
  opacity: 0;
}








/*.scroll-wrapper {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  -webkit-overflow-scrolling: touch;
}*/






@media (max-width: 390px) {
  #titel{
    transform: scale(0.8);
  }
}


@media (max-height: 650px) {
  #demoDiv{
    transform-origin: 50% 20%;
    transform: scale(0.8);
    width: 125%;
    left: -12.5%;
  }

  #demoDiv .spacer{
    flex: 0 0 calc(62.5dvw - 140px);
  }
}



@media (max-height: 550px){
  body{
    transform: scale(0.8);
  }

  #mainDiv {
    height: 87.5dvh;
  }

  #demoDiv{
    width: 125%;
    left: -12.5%;
  }

  #demoDiv .spacer{
    /*background-color: yellow;*/
    flex: 0 0 calc(62.5dvw - 140px);
  }
}


@media (max-height: 430px) {
  /*#mainBtn{
    transform: scale(0.65);
  }
   #mainBtnS{
    transform: scale(0.65);
  }*/

  body{
    transform: scale(0.5);
  }

  #mainDiv {
    height: 150dvh;
  }
}












